/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.beans;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author pguerreroj
 * CREATE TABLE Reparacio (
    OrdreReparacio integer NOT NULL,
    IdCapTaller integer NOT NULL,
    Acceptada boolean DEFAULT false NOT NULL,
    IdMecanic integer NOT NULL,
    Assignada boolean DEFAULT false NOT NULL,
    Comptador double precision,
    Observacions character varying(500),
    NumCom integer NOT NULL,
    DataAssignacio date,
    DataInici date,
    DataFi date
    );
 */
public class Reparacio implements Serializable {
    
    private static final long serialVersionUID = 1L;
    private int ordreReparacio;
    private int idCapTaller;
    private int idMecanic;
    private double comptador;
    private String observacions;
    private String estado;

    public Date getDataAssignacio() {
        return DataAssignacio;
    }

    public void setDataAssignacio(Date DataAssignacio) {
        this.DataAssignacio = DataAssignacio;
    }
    private int numCom;
    private int idEstado;
    private Date dataInici;
    private Date dataFi;
    private Date DataAssignacio;
    

    public Reparacio() {
    }

    public Reparacio(int ordreReparacio, int idCapTaller, boolean aceptada, int idMecanic, boolean assignada, double comptador, String observacions, int numCom, Date dataInici, Date dataFi) {
        this.ordreReparacio = ordreReparacio;
        this.idCapTaller = idCapTaller;
        this.idMecanic = idMecanic;
        this.comptador = comptador;
        this.observacions = observacions;
        this.numCom = numCom;
        this.dataInici = dataInici;
        this.dataFi = dataFi;
        this.dataFi = dataFi;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getOrdreReparacio() {
        return ordreReparacio;
    }

    public int getIdCapTaller() {
        return idCapTaller;
    }

  
    public int getIdMecanic() {
        return idMecanic;
    }

  
  
    public String getObservacions() {
        return observacions;
    }

    public int getNumCom() {
        return numCom;
    }
    public double getComptador() {
        return comptador;
    }
    public String getEstado() {
        return estado;
    }
    public Date getDataInici() {
        return dataInici;
    }

    public Date getDataFi() {
        return dataFi;
    }

    public void setOrdreReparacio(int ordreReparacio) {
        this.ordreReparacio = ordreReparacio;
    }

    public void setIdCapTaller(int idCapTaller) {
        this.idCapTaller = idCapTaller;
    }
  public void setEstado(String e) {
        this.estado = e;
    }


    public void setIdMecanic(int idMecanic) {
        this.idMecanic = idMecanic;
    }

    public void setComptador(double comptador) {
        this.comptador = comptador;
    }

    public void setObservacions(String observacions) {
        this.observacions = observacions;
    }

    public void setNumCom(int numCom) {
        this.numCom = numCom;
    }

    public void setDataInici(Date dataInici) {
        this.dataInici = dataInici;
    }

    public void setDataFi(Date dataFi) {
        this.dataFi = dataFi;
    }

    /**
     * @return the idEstado
     */
    public int getIdEstado() {
        return idEstado;
    }

    /**
     * @param idEstado the idEstado to set
     */
    public void setIdEstado(int idEstado) {
        this.idEstado = idEstado;
    }
    
    
}
